cmake_minimum_required(VERSION 3.16)
if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 14)
endif()
project(trdpmini_demo)

set(TRDPMINI_INC_DIR /usr/include/trdpmini)
set(TRDPMINI_LIB_DIR /usr/lib/trdpmini)

include_directories(${TRDPMINI_INC_DIR})

find_library(pthread libpthread.so REQUIRED)
find_library(trdpmini libtrdpmini.a HINTS ${TRDPMINI_LIB_DIR})

add_executable(trdpmini_demo example.c)

target_link_libraries(trdpmini_demo
	${trdpmini}
	${pthread}
)


